package dataBase

import (
	"database/sql"
	"fmt"
	_ "github.com/go-sql-driver/mysql"
	//"time"
)

func GetMysqlDb()( *sql.DB,error){
	db, err:= sql.Open("mysql", "root:change@yourself@tcp(10.2.5.170:3306)/change_v3_0_4?charset=utf8")
	if(err!=nil){
		fmt.Print("远程调用失败",err);
	}
	db.Ping();
	return db,err
}

